<!--完整版的主体框架 由于框架页面是每个页面都必然会包含的，因此公共的导入文件都在此导入 -->
<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page isELIgnored="false"%>
<title>忆唐|Etown|Extjs|JQuery|HTML5|Flex|AS3|脚本|脚本娃娃|脚本技术|前端|UI设计</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<div id="topDiv1">
</div>
<c:if test="${userName!=null}">
	<div id="userInfo" class="divCommon area2">
		<span>欢迎<font color="#FF6600">${nickName}</font>
		</span>
		<span><a href="#">收件箱</a>
		</span>
		<span><a href="${pageContext.request.contextPath}/blog/personalMain.jsp">我的主页</a>
		</span>
		<c:if test="${SYS_MGR!=null}">
			<span><a href="${pageContext.request.contextPath}/sysmng/sysMngIndex.jsp">系统后台</a>
			</span>
		</c:if>
		<span><a id="logoutBtn" href="#">退出</a>
		</span>
	</div>
</c:if>
<c:if test="${userName==null}">
	<div id="defaultInfo" class="divCommon area3">
		<span>您尚未登录</span>
		<span><a id="loginBtn" href="#">登录</a>
		</span>
		<span><a id="registBtn" href="#">注册</a>
		</span>
	</div>
</c:if>
<div id="logo" class="logo">
	<img src="${pageContext.request.contextPath}/images/logo.jpg" alt="忆唐"></img>
</div>
<div id="headImg" class="imgRight">
	<img src="${pageContext.request.contextPath}/images/headerRight.jpg" alt="忆唐"></img>
</div>
<div id="headText">
	忆唐，思想在远方
</div>
<div id="headBottom">
	<table id="navTable" style="width: 100%;height: 100%">
		<tr>
			<td style="width: 80px;height: 100%" align="center">
				<a href="${pageContext.request.contextPath}/index.jsp">首页</a>
			</td>
			<td style="width: 80px;" align="center">
				<a href="${pageContext.request.contextPath}/news/newsIndex.jsp">新闻</a>
			</td>
			<td style="width: 80px;" align="center">
				<a href="${pageContext.request.contextPath}/forum/loadPosts30.action?blockId=5000">论坛</a>
			</td>
			<td style="width: 80px;" align="center">
				<a href="${pageContext.request.contextPath}/blog/blogIndex.jsp">博客</a>
			</td>
			<td style="width: 100px;" align="center">
				<a
					href="${pageContext.request.contextPath}/magzine/magzineIndex.jsp">《码农》</a>
			</td>
			<td style="width: 100px;" align="center">
				<a href="${pageContext.request.contextPath}/exam/exam.jsp">江南贡院</a>
			</td>
			<!-- 
			<td style="width: 100px;" align="center"><a href="#">企业服务</a></td>
			-->
			<td style="width: 100px;" align="center">
				<a href="${pageContext.request.contextPath}/app/appIndex.jsp">特色应用</a>
			</td>
			<td style="width: 400px;" align="right">
				<input id="keyWords" type="text" style="width: 300px;height: 25px;font-size: 16px;"></input>
				<button id="innerSearch" style="height: 25px;">
					站内搜索
				</button>
			</td>
		</tr>
	</table>
</div>
<div id="footer">
	&copy; 2010-2011　忆唐[沪ICP备10219019号] | 联系我们 | 友情链接 | 站点统计
</div>
<div id="sysMsgArea">
</div>
<link href="${pageContext.request.contextPath}/css/etown_common.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="${pageContext.request.contextPath}/common/jquery1.4.2.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/jquery.timers-1.2.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/jquery.utils/jquery.utils.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/dump.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/etownCommon.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/common/ChineseCalendar.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#loginBtn").click(function(){
			window.location.href="${pageContext.request.contextPath}/usermng/login.jsp";
		});
		$("#logoutBtn").click(function(){
			window.location.href="${pageContext.request.contextPath}/logout.action";
		});
		$("#registBtn").click(function(){
			window.location.href="${pageContext.request.contextPath}/usermng/regist.jsp";
		});
		$("#innerSearch").click(function(){
			window.location.href="${pageContext.request.contextPath}/search/searchIndex.jsp";
		});
		$("#navTable a").each(function(){
			$(this).mouseover(function(){
				$(this).css("color","#cccccc");
			})
			.mouseout(function(){
				$(this).css("color","");
			});
		});
		
		//显示日期
		var date = new ChineseCalendar();
		var dateStr=date.YYMMDD()+" "+date.HHIS()+" "+date.weekday()+" 农历："+date.solarDay2()
		$("#topDiv1").html(dateStr);
		$(document).everyTime(1000, function(i) {
			date = new ChineseCalendar();
			dateStr=date.YYMMDD()+" "+date.HHIS()+" "+date.weekday()+" 农历："+date.solarDay2()
			$("#topDiv1").html(dateStr);
		});
	})
</script>
